<?php
include 'connect.php';

$gamename=$_GET['gamename'];
$username=$_GET['username'];
$password=$_GET['password'];

$sql ="INSERT INTO `qq` (`gamename`, `username`, `password`) VALUES ('$gamename', '$username', '$password');";
$boolean = mysqli_query($link,$sql);

if($boolean && mysqli_affected_rows($link)){
    echo '注册成功<a href="index.php">返回登录页面</a>';
} else{
    echo'注册失败<a href="index.php">返回登录页面</a>';
}


mysqli_close($link);

